import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import qiankun from 'vite-plugin-qiankun';


// https://vitejs.dev/config/
export default defineConfig({
  server: {
    port: 5174,
    headers: {
      'Access-Control-Allow-Origin': '*', // 主应用获取子应用时跨域响应头
    },
  },
  plugins: [
    vue(), 
    qiankun('vue', {
      useDevMode: true
    })
  ],
})
